<template>
	<view class="main">
		<header-vue :back="true" title="参与话题"></header-vue>
		<view style="margin-top: 28rpx;">
			<topicVue></topicVue>
		</view>
	</view>
</template>

<script>
	import headerVue from '../../components/header.vue';
	import topicVue from './components/topic.vue';

	export default {
		components: {
			headerVue,
			topicVue,
		},
		data() {
			return {
			}
		},
		methods: {
			goPage(url) {
				uni.navigateTo({
					url
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.main {
		background: #F6F6F6;
	}

	.margin32 {
		margin: 0 32rpx;
	}

	.search-box {
		height: 72rpx;
		background: $uni-bg-color;
		border-radius: 60rpx;
		padding: 0 28rpx;
		margin-bottom: 28rpx;
		width: 100%;

		.iconfont {
			color: $uni-text-color-grey;
			margin-right: 20rpx;
		}

		.input {
			width: 100%;
			height: 100%;
			color: $uni-text-color-grey;
		}
	}

	.scroll-x {
		padding: 28rpx 0;
		box-sizing: border-box;
		border-radius: 20rpx;
		white-space: nowrap;
		width: auto;

		.type {
			padding: 0 20rpx;
			box-sizing: border-box;
			height: 48rpx;
			background: #EEEEEE;
			border-radius: 60rpx;
			color: $uni-text-color-grey;
			margin-right: 28rpx;

			&:nth-child(1) {
				margin-left: 32rpx;
			}
		}

		.active {
			color: $uni-text-color-inverse;
			background: $uni-color-primary;
			font-weight: 500;
		}

		.next-btn {
			width: 62rpx;
			height: 48rpx;
			position: absolute;
			right: 0;
		}
	}

	.price {
		color: $uni-text-color-red;
		align-items: baseline;
	}

	.select-box {
		position: relative;
		background: $uni-bg-color;
		box-sizing: border-box;
		margin-bottom: 28rpx;

		.select-modal {
			width: 100vw;
			position: absolute;
			z-index: 10;
			background: $uni-bg-color;
			border-radius: 0rpx 0rpx 28rpx 28rpx;
			left: -32rpx;
			top: 100%;
			margin-top: 8rpx;
			padding: 28rpx 32rpx;
			box-sizing: border-box;

			.select-modal-item {
				margin-top: 40rpx;
				color: $uni-text-color-grey1;

				&:nth-child(1) {
					margin: 0;
				}
			}

			.radio {
				width: 26rpx;
				height: 26rpx;
				border-radius: 50%;
				border: 1rpx solid $uni-color-primary;
			}

			.active {
				color: $uni-text-color;

				.radio {
					background: $uni-color-primary;
					color: $uni-text-color-inverse;
				}
			}
		}
	}

	.order-type {
		padding: 20rpx 32rpx;

		.item {
			color: $uni-text-color-grey1;
			height: 42rpx;
			position: relative;
		}

		.active {
			font-weight: 500;
			font-size: 32rpx;
			color: $uni-text-color;

			&:before {
				content: '';
				width: 32rpx;
				height: 6rpx;
				background: #0785CF;
				border-radius: 20rpx;
				position: absolute;
				bottom: -20rpx;
				left: 50%;
				transform: translate(-50%, 0);
			}
		}
	}
</style>